<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
 <script>
     var dog = {
         name:'wangcai',
         height:1.55,
         age:15,
         friend:['lulu','xixi'],
         run:function(){
             console.log(this.name + 'run')
         },
         eate:function(meat){
             console.log(this.name + '---eate' + meat)

         }
     }
     for (var pname in dog){
         console.log(pname,dog[pname])

     }
     dog.run()
     dog.eate('meat')

 </script>

</body>
</html>